#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include <opencv2/opencv.hpp>
#include <detecposition.h>
using namespace cv;
class MainWindow : public QMainWindow
{
    Q_OBJECT

private:
    CvCapture *camera;
    int isShow, isExit;
    DetecPosition det;
public:
    MainWindow(QWidget *parent = 0);
    ~MainWindow();
public slots:
    void work();
    void changework(int);
    void Exit();
    int otsu(IplImage *, IplImage *);
    uchar detectCode(CvPoint, int, int);
    void findContours(IplImage *);
};

#endif // MAINWINDOW_H
